Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TrackReco HitPattern in light of GEM now including GE0 #35205

Merged
merged 5 commits into from
Sep 11, 2021

Conversation

watson-ij
Copy link
Contributor

@watson-ij watson-ij commented Sep 9, 2021

PR description:

Updates TrackReco HitPattern to include GE0 in GEM, while keeping it backward compatible for GE1/1 and GE2/1 (i.e. those stations should have same bit pattern as before). Fixes a bug in the decoder which was previously reading the GEM station incorrectly. The HitPattern for GEM is not used so far, so no changes in the output is expected. Requested here: #35033 (comment)

@jshlee @slava77

PR validation:

Ran a ten mu 2026 workflow and checked it ran to completion. Checked the output of printHitPattern after adding in a GEM hit, reads out correctly.

if this PR is a backport please specify the original PR and why you need to backport that PR:

Before submitting your pull requests, make sure you followed this checklist:

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 9, 2021

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35205/25149

  • This PR adds an extra 32KB to repository

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 9, 2021

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35205/25151

  • This PR adds an extra 32KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 9, 2021

A new Pull Request was created by @watson-ij (Ian J. Watson) for master.

It involves the following packages:

  • DataFormats/TrackReco (reconstruction)

@jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@JanFSchulte, @rovere, @VinInn, @gpetruc, @mmusich, @mtosi this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@slava77
Copy link
Contributor

slava77 commented Sep 9, 2021

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 9, 2021

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f24d83/18445/summary.html
COMMIT: 3a20969
CMSSW: CMSSW_12_1_X_2021-09-08-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/35205/18445/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 39
  • DQMHistoTests: Total histograms compared: 3001001
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3000979
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 38 files compared)
  • Checked 165 log files, 37 edm output root files, 39 DQM output files
  • TriggerResults: no differences found

Copy link
Contributor

@slava77 slava77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please also check that HitPattern::printHitPattern is correct for GEM after this update.

Copy link
Contributor

@slava77 slava77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks like neither getGEMStation nor getGEMLayer are used in computing anything in cmssw, except for some test printouts via HitPattern::printHitPattern. So, the validation plots are not expected to change.

please also check that HitPattern::printHitPattern is correct for GEM after this update.

DataFormats/TrackReco/interface/HitPattern.h Outdated Show resolved Hide resolved
uint16_t sss = getSubSubStructure(pattern);
if (sss & 0b1000)
return 0;
return (sss >> 2) + 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks like a bugfix (a shift by 2 instead of 1 in view of what was encoded as (gemid.station() - 1) << 2.
Please add a more explicit note about this in the PR description.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the PR

@watson-ij
Copy link
Contributor Author

@slava77 Ok thanks. I'll check the print function first, then update the code and PR description

Co-authored-by: Slava Krutelyov <[email protected]>
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35205/25182

  • This PR adds an extra 32KB to repository

@cmsbuild
Copy link
Contributor

Pull request #35205 was updated. @jpata, @cmsbuild, @slava77 can you please check and sign again.

@slava77
Copy link
Contributor

slava77 commented Sep 10, 2021

@cmsbuild please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f24d83/18489/summary.html
COMMIT: 42d511b
CMSSW: CMSSW_12_1_X_2021-09-09-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/35205/18489/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 39
  • DQMHistoTests: Total histograms compared: 3001001
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3000973
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 38 files compared)
  • Checked 165 log files, 37 edm output root files, 39 DQM output files
  • TriggerResults: no differences found

@slava77
Copy link
Contributor

slava77 commented Sep 10, 2021

+reconstruction

for #35205 42d511b

  • code changes are in line with the PR description and the follow up review (this includes both the update to support the combined handling of ME0 as GEM station 0 as well as some originally present bugs in getGEMStation and printHitPattern implementations)
  • jenkins tests pass and comparisons with the baseline show no differences (the modified / updated variables are not monitored directly)

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2)

@qliphy
Copy link
Contributor

qliphy commented Sep 11, 2021

+1

@makortel
Copy link
Contributor

ASAN reports an issue possibly caused by this PR, please see #35283

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants